home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / thrust_2.swf / scripts / frame_21 / PlaceObject2_92_535 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2012-01-07  |  670b  |  32 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.bullets == true)
  3.    {
  4.       this._x += _root.bulletx / 3 + _root.bulletxtrax;
  5.       this._y -= _root.bullety / 3 + _root.bulletxtray;
  6.       if(this._x > 535)
  7.       {
  8.          _root.bullets = false;
  9.       }
  10.       if(_root.land.hitTest(_X,_Y,true))
  11.       {
  12.          _root.bullets = false;
  13.       }
  14.       if(this._x < 15)
  15.       {
  16.          _root.bullets = false;
  17.       }
  18.       if(this._y > 385)
  19.       {
  20.          _root.bullets = false;
  21.       }
  22.       if(this._y < 50)
  23.       {
  24.          _root.bullets = false;
  25.       }
  26.    }
  27.    if(_root.bullets == false && this._visible)
  28.    {
  29.       this._visible = false;
  30.    }
  31. }
  32.